<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>top</title>
<link href="<%=path%>/css/master.css" rel="stylesheet" type="text/css" />

<%@ include file="/WEB-INF/jsp/common/common.jsp" %>
<link href="<%=path%>/css/top.css" rel="stylesheet" type="text/css" />

 <script type="text/javascript">
        //动态显示当前的时间
        /* function ShowTime()
        {
            var myDate = new Date();
            var Today = ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
            var Years = myDate.getFullYear();
            var Months = myDate.getMonth() + 1;
            var Dates = myDate.getDate();
            var Days = Today[myDate.getDay()];
            var Hours = myDate.getHours();
        var Minutes = myDate.getMinutes();

        Months = Months < 10 ? '0' + Months : Months;
        Dates = Dates < 10 ? '0' + Dates : Dates;

        Hours = Hours < 10 ? '0' + Hours : Hours;
        Minutes = Minutes < 10 ? '0' + Minutes : Minutes;



        var Sys = {};
        var ua = navigator.userAgent.toLowerCase();
        var s;
        (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
        (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;

        if (Sys.firefox){
            if (Hours < 12) {
            $('#greeting').text('早上好');
            } else if (Hours < 18) {
                $('#greeting').text('下午好');
            } else {
                $('#greeting').text('晚上好');
            }
            $('#curTime').text(Years + '年' + Months + '月' + Dates + '日' + ' ' + Days + ' ' + Hours + ':' + Minutes);
        }else{
            if (Hours < 12) {
              document.getElementById('greeting').innerText='早上好';
            } else if (Hours < 18) {
              document.getElementById('greeting').innerText='下午好';
            } else {
              document.getElementById('greeting').innerText='晚上好';
            }
            document.getElementById('curTime').innerText = Years + '年' + Months + '月' + Dates + '日' + ' ' + Days + ' ' + Hours + ':' + Minutes;
        }

            //每隔半分钟重新调用GetTime函数
            setTimeout("ShowTime()","30000");

        } */


        //退出登录
        function exit()
        {
            window.parent.location.href = "<%=path%>/logout";
        }
    </script>
</head>

<style>
.status {
}

.status .username {
    color: #666;
}
.status #greeting {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    display: inline-block;
}

.status #greeting img {
    width: 30px;
    height: 30px;
    border-radius: 15px;
}

/* .status .down {
    padding: 10px 20px 10px 10px;
    cursor: pointer;
    position: relative;
}

.status .down img {
    width: 10px;
}
 */
 
 /* lfd 20191219 改为按钮 */
 .status .exit {
 	padding: 5px 10px;
 	margin: 0 15px;
 	border: 1px solid #666;
 	border-radius: 3px;
 	-moz-border-radius: 3px;
 	background: #fff;
 	color: #666;    
 	cursor: pointer;
 }
 
.exit_div {
    position: absolute;
    top: 30px; 
    right: 15px;
    background: #fff;
    border-radius: 4px;
    padding: 5px 8px;
    display: none;
    color: #666;
    width: 35px;
    text-align: center;
}
</style>
<body>
<div class="header">
    <%-- <div class="status"><span id="greeting"></span>，${sessionScope.gateway_session_user.userName}，欢迎您!&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" onclick="exit()"><img src="<%=path%>/images/logout.jpg" /></a></div>
    <div class="logo"></div>
    <div class="title">合作伙伴交易后台系统 <span class="test">测试环境</span></div> --%>
    
    <div class="status">
        <%-- <span id="greeting"><img alt="logo" src="<%=path%>/images/logo_new.png"></span> --%>
        <span class="username">${sessionScope.gateway_session_user.userName}</span>
        <!--<span id="more" class="down">
            <img alt="logo" src="<%=path%>/images/down.png">
            
            <span class="exit_div" onclick="exit()">退出</span>
        </span>  -->
        <!-- lfd 改为按钮 20191219 -->
        <span id="more" class="exit"  onclick="exit()">退出</span>
    </div>
    
    
    <div class="logo">
        <img src="<%=path%>/images/left_logo.png" style="width: 210px;">
    </div>
    <div class="title">合作伙伴交易后台系统</div>

    <!-- <div class="nav">
       <ul id="menuList">
           <li class="nav_li_d">车险核保监控</li>
           <li class="nav_li">人身险核保监控</li>
           <li class="nav_li">财务监控</li>
           <li class="nav_li">理赔监控</li>
       </ul>
    </div> -->
</div>
<%-- <div class="msg" style="text-align:left;border:1px solid red;"> &nbsp;&nbsp;&nbsp;&nbsp;<img src="<%=path%>/images/time.png" />&nbsp;<span id="curTime" style="display:inline-block"></span><span id="messages" style="display:inline-block"></span> --%>
<%-- <div class="msg">
    <div style="position:absolute;left:20px;top:61px;line-height:23px;"><img src="<%=path%>/images/time.png" />&nbsp;<span id="curTime" style="display:inline-block"></span></div>
</div> --%>

<script>
    /* $('#more').mouseover(function() {
    	$('.exit_div').show()
    })
    $('#more').mouseout(function() {
        $('.exit_div').hide()
    }) */
</script>
</body>
</html>
